import request from '@/util/request'
import store from '@/vuex/store'

// 查询新闻数据
export function getTotalsApi(currentCode) {
    const value = {
        appKey: '',
        appFlag: 2,
        token: store.getters.token,
        versionCode: 0,
        param: currentCode
    }
    return request({
        url: 'getTotal/getTotals.do',
        method: 'post',
        data: value
    })
}

//needDealProApi
export function needDealProApi(tem) {
    const value = {
        appKey: '',
        appFlag: 2,
        token: store.getters.token,
        versionCode: 0,
        param: JSON.stringify(tem)
    }
    return request({
        url: 'needDealPro/needDealPro.do',
        method: 'post',
        data: value
    })
}
